package com.waverider.promotion.biz.manager;

import com.waverider.promotion.domain.ShopDO;

/**
 * 
 * @author sihai
 * 
 */
public interface ShopManager {
	/**
	 * 
	 * @param shop
	 */
	void add(ShopDO shop);

	/**
	 * 
	 * @param shop
	 */
	void addOrUpdate(ShopDO shop);

	/**
	 * 
	 * @param shop
	 * @return
	 */
	boolean update(ShopDO shop);

	/**
	 * 
	 * @param sellerId
	 * @return
	 */
	ShopDO getBySellerId(Long sellerId);

	/**
	 * 
	 * @param shopId
	 * @return
	 */
	ShopDO getByShopId(Long shopId);

	/**
	 * 
	 * @param id
	 * @return
	 */
	boolean delete(Long id);

	/**
	 * 
	 * @param topSessionKey
	 * @param vistorId
	 * @param vistorNick
	 * @return
	 */
	ShopDO syncShopInfoFromTaobao(String topSessionKey, Long vistorId,
			String vistorNick);

	boolean isUnfree(String nick);
}
